package com.cmc.cloud.cmclink.doc.vo.sovo.dginfovo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 危险品信息补充 Base VO，提供给添加、修改、详细的子 VO 使用 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 * 
 * @author codegen
 */
@Data
public class DgDescBaseVO {

    @Schema(description = "港口代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{dgdesc.portcode.notblank}")
    @Length(max = 5, message = "{dgdesc.portcode.length}")
    private String portCode;

    @Schema(description = "联合国编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{dgdesc.unno.notblank}")
    @Length(max = 50, message = "{dgdesc.unno.length}")
    private String unNo;

    @Schema(description = "英文标准运输名称")
    @Length(max = 500, message = "{dgdesc.psnnameen.length}")
    private String psnEn;

    @Schema(description = "中文标准运输名称")
    @Length(max = 500, message = "{dgdesc.psnnamecn.length}")
    private String psnCn;

    @Schema(description = "危险品等级", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{dgdesc.class.notblank}")
    @Length(max = 50, message = "{dgdesc.class.length}")
    private String imoClass;

    @Schema(description = "闪点")
    @Length(max = 50, message = "{dgdesc.flashpoint.length}")
    private String flashPoint;

    @Schema(description = "功能特性")
    @Length(max = 500, message = "{dgdesc.funcen.length}")
    private String funcEn;

    @Schema(description = "功能特性")
    @Length(max = 500, message = "{dgdesc.funccn.length}")
    private String funcCn;

    @Schema(description = "灭火措施英文")
    @Length(max = 500, message = "{dgdesc.fireen.length}")
    private String fireEn;

    @Schema(description = "灭火措施中文")
    @Length(max = 500, message = "{dgdesc.firecn.length}")
    private String fireCn;

    @Schema(description = "急救措施英文")
    @Length(max = 500, message = "{dgdesc.emsen.length}")
    private String emsEn;

    @Schema(description = "急救措施中文")
    @Length(max = 500, message = "{dgdesc.emscn.length}")
    private String emsCn;

    @Schema(description = "是否可用", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{dgdesc.enable.notnull}")
    private Boolean enable;

}
